package com.carbon.carbonmanager.controller;

import com.carbon.carbonmanager.model.UserRegCodeInfo;
import com.carbon.carbonmanager.service.DataAnalysisService;
import com.carbon.carbonmanager.unit.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 数据统计接口
 * */
@RestController
@CrossOrigin
public class DataAnalysisController {
    @Autowired
    DataAnalysisService dataAnalysisService;
    /**
     * 首页数据统计
     * 所有人都可以看到大盘实时动态
     * */
    @ResponseBody
    @RequestMapping(value = "/getDataAnalysisy", method = RequestMethod.POST, produces = "application/json; utf-8")
    public Response getDataAnalysisy(){
        return dataAnalysisService.getDataAnalysisy();
    }
}
